package com.dqv5.shorturl.repository;

import com.dqv5.shorturl.entity.URLRecord;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.Optional;

/**
 * @author duq
 * @date 2020/11/10
 */
@Repository
public interface URLRecordRepository extends JpaRepository<URLRecord, Long> {
    Optional<URLRecord> findByShortCode(String code);
}
